package com.xiantm.study.thread.future;

public class RealData  implements Data{
    private final char[] content;

    public RealData(int count, char c){
        System.out.println("            Make real data count-" + count + " char-" + c + " start.");
        content  = new char[count];
        for (int i = 0; i < count; i++) {
            content[i] = c;
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("            Make real data count-" + count + " char-" + c + " end.");
    }
    @Override
    public String getContent() {
        return String.valueOf(content);
    }
}
